export interface RouterType {
    path: string,
    element: JSX.Element,
    children?: RouterType[]
}

export interface UserInfoType {
    id: number,
    name: string,
    password: string,
    username: string,
    img: string,
    pv: number,
    num: number,
    fans: number,
    sex: number,
    address: string,
    info: string,
    likes: string
}

export interface StoreType {
    userInfo: UserInfoType | {}
}

export interface ActionType {
    type: string,
    data?: any
}

export interface ReducerType {
    CHANGE_USER_INFO: (state: any, action: ActionType) => any
}

export interface ListItem {
    classify: string,
    title: string,
    img: string,
    info: string,
    classifytow: string,
    username: string,
    id: number
}